export const getTimePeriod = (): string => {
    const now = new Date();
    const hour = now.getHours();
    if (hour >= 5 && hour < 9) {
        return '早上';
    } else if (hour >= 9 && hour < 12) {
        return '上午';
    } else if (hour >= 12 && hour < 14) {
        return '中午';
    } else if (hour >= 14 && hour < 18) {
        return '下午';
    } else if (hour >= 18 && hour < 23) {
        return '晚上';
    } else {
        return '深夜';
    }
}